package com.ssy.lingxi.purchase.repository.needplan;

import com.ssy.lingxi.purchase.entity.needplan.NeedPlan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 需求计划DB操作类
 * */
@Repository
public interface NeedPlanRepository extends JpaRepository<NeedPlan, Long>, JpaSpecificationExecutor<NeedPlan> {

    List<NeedPlan> findAllByPurchasePlanId(Long id);
}
